/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.couponrule.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.jeesite.modules.couponrule.entity.CouponRule;
import com.thinkgem.jeesite.modules.couponrule.dao.CouponRuleDao;

/**
 * 生成加息券规则Service
 * @author thinkgem
 * @version 2017-08-17
 */
@Service
@Transactional(readOnly = true)
public class CouponRuleService extends CrudService<CouponRuleDao, CouponRule> {

	
	public CouponRule get(String id) {
		CouponRule couponRule = super.get(id);
		return couponRule;
	}
	
	public List<CouponRule> findList(CouponRule couponRule) {
		return super.findList(couponRule);
	}
	
	public Page<CouponRule> findPage(Page<CouponRule> page, CouponRule couponRule) {
		return super.findPage(page, couponRule);
	}
	
	@Transactional(readOnly = false)
	public void save(CouponRule couponRule) {
		super.save(couponRule);
	}
	
	@Transactional(readOnly = false)
	public void delete(CouponRule couponRule) {
		super.delete(couponRule);
	}
	
}